package com.jiuqi.irs.generator.dao.pojo;

import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="TB_BANK"
 *     
*/
public class TbBank implements Serializable {

    /** identifier field */
    private String pbGuid;

    /** persistent field */
    private String bankId;

    /** persistent field */
    private String orgFinancezone;

    /** nullable persistent field */
    private String bankName;

    /** nullable persistent field */
    private String bankAccount;

    /** nullable persistent field */
    private String bankAccountname;

    /** nullable persistent field */
    private String isDisabledFlag;

    /** persistent field */
    private String bankYear;

    /** nullable persistent field */
    private String reserved1;

    /** nullable persistent field */
    private String reserved2;

    /** nullable persistent field */
    private String reserved3;

    /** full constructor */
    public TbBank(String pbGuid, String bankId, String orgFinancezone, String bankName, String bankAccount, String bankAccountname, String isDisabledFlag, String bankYear, String reserved1, String reserved2, String reserved3) {
        this.pbGuid = pbGuid;
        this.bankId = bankId;
        this.orgFinancezone = orgFinancezone;
        this.bankName = bankName;
        this.bankAccount = bankAccount;
        this.bankAccountname = bankAccountname;
        this.isDisabledFlag = isDisabledFlag;
        this.bankYear = bankYear;
        this.reserved1 = reserved1;
        this.reserved2 = reserved2;
        this.reserved3 = reserved3;
    }

    /** default constructor */
    public TbBank() {
    }

    /** minimal constructor */
    public TbBank(String pbGuid, String bankId, String orgFinancezone, String bankYear) {
        this.pbGuid = pbGuid;
        this.bankId = bankId;
        this.orgFinancezone = orgFinancezone;
        this.bankYear = bankYear;
    }

    /** 
     *            @hibernate.id
     *             generator-class="assigned"
     *             type="java.lang.String"
     *             column="PB_GUID"
     *         
     */
    public String getPbGuid() {
        return this.pbGuid;
    }

    public void setPbGuid(String pbGuid) {
        this.pbGuid = pbGuid;
    }

    /** 
     *            @hibernate.property
     *             column="BANK_ID"
     *             length="16"
     *             not-null="true"
     *         
     */
    public String getBankId() {
        return this.bankId;
    }

    public void setBankId(String bankId) {
        this.bankId = bankId;
    }

    /** 
     *            @hibernate.property
     *             column="ORG_FINANCEZONE"
     *             length="16"
     *             not-null="true"
     *         
     */
    public String getOrgFinancezone() {
        return this.orgFinancezone;
    }

    public void setOrgFinancezone(String orgFinancezone) {
        this.orgFinancezone = orgFinancezone;
    }

    /** 
     *            @hibernate.property
     *             column="BANK_NAME"
     *             length="100"
     *         
     */
    public String getBankName() {
        return this.bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    /** 
     *            @hibernate.property
     *             column="BANK_ACCOUNT"
     *             length="40"
     *         
     */
    public String getBankAccount() {
        return this.bankAccount;
    }

    public void setBankAccount(String bankAccount) {
        this.bankAccount = bankAccount;
    }

    /** 
     *            @hibernate.property
     *             column="BANK_ACCOUNTNAME"
     *             length="100"
     *         
     */
    public String getBankAccountname() {
        return this.bankAccountname;
    }

    public void setBankAccountname(String bankAccountname) {
        this.bankAccountname = bankAccountname;
    }

    /** 
     *            @hibernate.property
     *             column="IS_DISABLED_FLAG"
     *             length="3"
     *         
     */
    public String getIsDisabledFlag() {
        return this.isDisabledFlag;
    }

    public void setIsDisabledFlag(String isDisabledFlag) {
        this.isDisabledFlag = isDisabledFlag;
    }

    /** 
     *            @hibernate.property
     *             column="BANK_YEAR"
     *             length="4"
     *             not-null="true"
     *         
     */
    public String getBankYear() {
        return this.bankYear;
    }

    public void setBankYear(String bankYear) {
        this.bankYear = bankYear;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED1"
     *             length="50"
     *         
     */
    public String getReserved1() {
        return this.reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED2"
     *             length="100"
     *         
     */
    public String getReserved2() {
        return this.reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2;
    }

    /** 
     *            @hibernate.property
     *             column="RESERVED3"
     *             length="150"
     *         
     */
    public String getReserved3() {
        return this.reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3;
    }

    public String toString() {
        return new ToStringBuilder(this)
            .append("pbGuid", getPbGuid())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof TbBank) ) return false;
        TbBank castOther = (TbBank) other;
        return new EqualsBuilder()
            .append(this.getPbGuid(), castOther.getPbGuid())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getPbGuid())
            .toHashCode();
    }

}
